'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.get('/book/create', controller.books.create);
  router.get('/book/list', controller.books.list);
  router.get('/book/details', controller.books.findOne);
  router.delete('/book/delete/:uuid', controller.books.delete);
  router.put('/book/edit', controller.books.update);
};
